package com.itrip.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 响应数据
 */
@ApiModel
public class ResponseDTO {

    @ApiModelProperty(value = "响应编码,100:请求成功，101：请求失败，102：未认证，103：请求异常")
    private Integer code;
    @ApiModelProperty(value = "描述信息")
    private String msg;
    @ApiModelProperty(value = "响应的数据内容")
    private Object data;

    /**
     * 响应数据内容
     * @param code 响应编码
     *             <br/>100:请求成功
     *             <br/>101：登录失败
     *             <br/>102：未认证
     *             <br/>103：请求异常
     * @param msg 描述信息
     * @param data 响应数据内容
     */
    public ResponseDTO(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResponseDTO(){}

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
